#
SIMDIR=/home/heinrich/Sim
USRDIR=/home/heinrich/myusr
VFILES = alu.v cpu.v ex.v if.v mem.v mips.v qc.v rd.v rf.v wb.v
HFILES = sync.h sysfunc.h mips.h 
RM = /bin/rm
CHECK = $(USRDIR)/local/bin/vcheck
PLI_LIB = $(USRDIR)/local/lib/vcs/libvcspli.a
PLI_FILE = vcs_pli.tab

TARGETS=simv
SUBDIRS=test

include $(SIMDIR)/Tools/mk/Makefile.std

CLEANFILES += test-out

#$(PLI_FILE):
#	ln -s ../$(PLI_FILE) .

simv: $(VFILES) $(PLI_FILE) $(HFILES) boot.image
	vcs -Mupdate -I $(PLI_LIB) $(VFILES) -line +clI -P $(PLI_FILE)
